﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Automation.Protocols.Model
{
    public class TestCommand
    {
        private string _id;
        private string _keyword;
        private string _object;
        private string _target;
        private string _function;

        public string ID
        {
            get { return _id; }
            set
            {
                _id = value;
            }
        }

        public string Keyword
        {
            get { return _keyword; }
            set
            {
                _keyword = value;
            }
        }

        public string Object
        {
            get { return _object; }
            set
            {
                _object = value;
            }
        }

        public string Target
        {
            get { return _target; }
            set
            {
                _target = value;
            }
        }

        public string Function
        {
            get { return _function; }
            set
            {
                _function = value;
            }
        }

        public bool isValid()
        {
            if (_id == null || _keyword == null || _object == null || _target == null || _function == null)
                return false;
            if (_id.Equals("") || _keyword.Equals("") || _object.Equals("") || _target.Equals("") || _function.Equals(""))
                return false;
            _keyword = _keyword.Replace(" ", "");
            return true;
        }
    }
}
